package com.xinghou.platform.dao.main;

import com.xinghou.platform.model.main.UserStatistics;
import org.springframework.dao.DataAccessException;

import java.sql.Timestamp;
import java.util.List;

public interface UserStatisticsDAO {
	/**
	 * 根据statid获取行为统计表信息
	 * @param statId
	 * @return
	 * @throws DataAccessException
	 */
	public UserStatistics getUserStatById(Integer statId) throws DataAccessException;
	
	/**
	 * 更新行为统计表
	 * @param userstat
	 * @return
	 * @throws DataAccessException
	 */
	public int updateUserStat(UserStatistics userstat) throws DataAccessException;
	
	/**
	 * 保存行为统计信息
	 * @param userstat
	 * @throws DataAccessException
	 */
	public int saveUserStat(UserStatistics userstat) throws DataAccessException;

	public void addUserCardCount(Integer userid) throws DataAccessException;
	
	/**
	 * 获得最近登录用户列表
	 * @param rowNum
	 * @param time
	 * @return
	 * @throws DataAccessException
	 */
	public List<UserStatistics> getUserStatisticsLists(int rowNum,Timestamp time) throws DataAccessException;
}
